<template>
  <div class="hello">
    <h1 @click="up()">欢迎你 XXXX {{$store.state.km}}</h1>
    {{kk}}

    {{$store.getters.sex}}<br>

        {{$store.state.cc}}
  </div>
</template>

<script>
export default {
  data () {
    return {
      kk:this.$store.state.km
    }
  },
  methods:{
    up(){
      this.$store.commit("up",66666666666666)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
